home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
comm
/
net
/
AmiMUD.lha
/
AmiMUD
/
rexx
/
example2.amud
< prev
next >
Wrap
Text File
|
1996-09-28
|
839b
|
47 lines
/* this example script shows how to use the am_log command */
address 'AmiMUD.1'
'am_echo " "'
'am_echo "This script show how am_log works"'
'am_echo " "'
'am_echo "Now I''ll log the next 3 lines from the mud in the variable STUFF"'
'am_echo "Please note that the control will came again to the script ONLY"'
'am_echo "if it will receive 3 lines from the mud (or with the command #send"'
'am_echo "or if amimud is terminated."'
am_log 3 stuff
'am_echo " "'
'am_echo "Lines received:"'
do i=0 to 2
'am_echo "' i ':' stuff.i '"'
end
'am_echo " "'
'am_echo " "'
'am_echo "Ok, now I''ll log the 4 lines following the line with the word <now>"'
'am_log 4 TEMP WAITFOR "now"'
'am_echo " "'
'am_echo "Lines received:"'
do i=0 to 3
'am_echo "' i ':' temp.i '"'
end
'am_echo " "'
'am_echo " "'
'am_echo "Script terminated."'